indexes.push(indexLabel.get_text());
Main.keyboard.resetSuggestions();
+ Main.keyboard.setSuggestionsVisible(visible);
let candidates = [];
for (let i = startIndex; i < endIndex; ++i) {
this._candidateArea.updateButtons(lookupTable.is_round(), page, nPages);
});
panelService.connect('show-lookup-table', () => {
+ Main.keyboard.setSuggestionsVisible(true);
this._candidateArea.show();
this._updateVisibility();
});
panelService.connect('hide-lookup-table', () => {
+ Main.keyboard.setSuggestionsVisible(false);
this._candidateArea.hide();
this._updateVisibility();
});
clear() {
this.remove_all_children();
}
+
+ setVisible(visible) {
+ for (const child of this)
+ child.visible = visible;
+ }
});
var LanguageSelectionPopup = class extends PopupMenu.PopupMenu {
this._suggestions.clear();
}
+ setSuggestionsVisible(visible) {
+ this._suggestions?.setVisible(visible);
+ }
+
addSuggestion(text, callback) {
if (!this._suggestions)
return;